/*
 * @description: 
 * @Author: Islands
 * @Date: 2024-06-18 22:40:40
 * @LastEditTime: 2024-06-20 19:29:40
 */
import { HOME, BLACK_TAGS } from '@/constant/white';

export const props = {
    activeTab: { type: String, default: HOME },
    //禁止tab 删除的路由
    noDeletePath: { type: String, default: HOME },
    //禁止加入tab 列表的路由
    blackPath: { type: Array<String>, default: BLACK_TAGS },
    tabList: { type: Array<ITabs>, default: [] },
    tabsHeight: {
        type: Number,
        default: 30
    },
    //右键单击
    contentId: {
        type: String,
        default: ''
    }
};

export interface Emits {
    (e: 'addTab', tab: ITabs): void;
    (e: 'setActiveTab', path: string): () => void;
    (e: 'removeTabList', targetName: string, cb: (arg: any) => void): () => void;
    //右键单击
    (e: 'setContextTabId', currentContextTabId: string): () => void;
    (e: 'closeAllTabs'): () => void;
}


export type ITabs = {
    path: string;
    title: string;
    icon: string;
};
